import request from '@/utils/request'

// 查询发票列表
export function listScmInvoice(query) {
  return request({
    url: '/scm/scmInvoice/list',
    method: 'get',
    params: query
  })
}

// 查询发票详细
export function getScmInvoice(id) {
  return request({
    url: '/scm/scmInvoice/' + id,
    method: 'get'
  })
}

// 新增发票
export function addScmInvoice(data) {
  return request({
    url: '/scm/scmInvoice',
    method: 'post',
    data: data
  })
}

// 修改发票
export function updateScmInvoice(data) {
  return request({
    url: '/scm/scmInvoice',
    method: 'put',
    data: data
  })
}

// 删除发票
export function delScmInvoice(id) {
  return request({
    url: '/scm/scmInvoice/' + id,
    method: 'delete'
  })
}
